Skip to content

Fix a small todo#51

Merged
watterfall merged 1 commit intomainfrom
claude/fix-todo-miogqga2mzfiv27p-016p2zrDDgyXiD4YeaVVvpGW
Dec 2, 2025
Merged

Fix a small todo#51
watterfall merged 1 commit intomainfrom
claude/fix-todo-miogqga2mzfiv27p-016p2zrDDgyXiD4YeaVVvpGW

Conversation

@watterfall
Copy link
Contributor

Add TypeScript Props interfaces to improve type safety:

  • Tags.astro: tags and class props
  • SocialShare.astro: text, url (string|URL), and class props
  • GridItem.astro: post prop with BlogPost type
  • ListItem.astro: post prop with BlogPost type
  • SinglePost.astro: post (with optional body) and url props

Also fixed pre-existing issues:

  • Handle Date|string for datetime attributes via conversion
  • Handle optional readingTime with nullish coalescing
  • Support URL type for url props (matches getCanonical return type)
  • Remove HTML comments from JSX blocks (Prettier compatibility)

Add TypeScript Props interfaces to improve type safety:
- Tags.astro: tags and class props
- SocialShare.astro: text, url (string|URL), and class props
- GridItem.astro: post prop with BlogPost type
- ListItem.astro: post prop with BlogPost type
- SinglePost.astro: post (with optional body) and url props

Also fixed pre-existing issues:
- Handle Date|string for datetime attributes via conversion
- Handle optional readingTime with nullish coalescing
- Support URL type for url props (matches getCanonical return type)
- Remove HTML comments from JSX blocks (Prettier compatibility)
@vercel
Copy link

vercel bot commented Dec 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
website Ready Ready Preview Comment Dec 2, 2025 11:10am

@watterfall watterfall merged commit aef2ed7 into main Dec 2, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants